<?php

class SelectYawalXlsFileForm extends sfForm
{  
  public function __construct($defaults = array(), $options = array())
  {    
    parent::__construct($defaults, $options);
  }
  
  public function configure()
  {
    $this->widgetSchema->setNameFormat('select_yawal_xls[%s]');
    
    $widget = new sfWidgetFormInputFile(array('label' => 'Wybierz plik zamówienia:'));
    $this->setWidget('file', $widget);
    
    $this->setValidators(array(
      'file' => new sfValidatorFile(),
    ));
  }
}